﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Web.Services;
using System.Web.Configuration;
using System.Text;
using Access.BLL;
using Entity;
using YiWangTongBan.BLL;
using Newtonsoft.Json;
using System.Configuration;
using YiWangTongBan.Entity.dto;
namespace YiWangTongBan
{
    /// <summary>
    ///一网通办公共调用接口
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class YWTB_WS : System.Web.Services.WebService
    {
        DLLYWTB_WS _DLLYWTB_WS = new DLLYWTB_WS();

        #region 报修 接口
        [WebMethod(MessageName = "Repaire", Description = @"报修")]
        public XiangYingEntity Repaire(RepairEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.Repaire(rpEntity, S_IP);
        }
        #endregion

        #region 单位接水 接口
        //////[WebMethod(MessageName = "CompanyApply", Description = @"单位接水")]
        //////public XiangYingEntity CompanyApply(CompanyApplyEntity rpEntity)
        //////{
        //////    string S_IP = "";
        //////    return _DLLYWTB_WS.CompanyApply(rpEntity, S_IP);
        //////}

        #endregion

        #region 居民住宅单独接水 接口

        [WebMethod(MessageName = "ResidentApply", Description = @"居民住宅单独接水")]
        public XiangYingEntity ResidentApply(ResidentApplyEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.ResidentApply(rpEntity, S_IP);
        }

        #endregion

        #region 居民过户/单位过户 接口

        [WebMethod(MessageName = "Transfer", Description = @"居民过户/单位过户")]
        public XiangYingEntity Transfer(TransferEntity rpEntity)
        {

            string S_IP = this.Context.Request.UserHostAddress;

            return _DLLYWTB_WS.Transfer(rpEntity, S_IP);
        }

        #endregion

        #region 实名制 接口
        [WebMethod(MessageName = "RealName", Description = @"实名制")]
        public XiangYingEntity RealName(RealNameEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.RealName(rpEntity, S_IP);
        }
        #endregion

        #region 居民住宅总表分装 接口

        [WebMethod(MessageName = "WatermeterSplit", Description = @"居民住宅总表分装")]
        public XiangYingEntity WatermeterSplit(WatermeterSplitEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.WatermeterSplit(rpEntity, S_IP);
        }

        #endregion

        #region 业务受理校验 接口
        [WebMethod(MessageName = "searchWaterUserInfo", Description = @"业务受理校验")]
        public ResultEntity searchWaterUserInfo(string card_id, string businessType, string queryType)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.searchWaterUserInfo(card_id, businessType, S_IP, queryType);
        }

        #endregion

        #region 一户多人口
        [WebMethod(MessageName = "multiPopulation", Description = @"一户多人口")]
        public YHDRK_XiangYingEntity multiPopulation(multiPopulationEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.multiPopulation(rpEntity, S_IP);
        }
        #endregion

        #region 联合过户
        [WebMethod(MessageName = "uniTransfer", Description = @"居民联合过户")]
        public YHDRK_XiangYingEntity uniTransfer(uniTransferEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.uniTransfer(rpEntity, S_IP);
        }
        #endregion

        #region 地址查询
        [WebMethod(MessageName = "getAddress", Description = @"地址查询")]
        public AddressResultEntity getAddress(string card_id)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.getAddress(card_id, S_IP);
        }
        #endregion

        #region 账单/欠费查询
        [WebMethod(MessageName = "queryArrearsBill", Description = @"欠费/账单查询接口")]
        public ArrearsBillResultEntity queryArrearsBill(queryArrearsBillEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.queryArrearsBill(rpEntity, S_IP);
        }
        #endregion

        #region 申请单状态传回 一网通办

        [WebMethod(MessageName = "updateIncidentStatus", Description = @"业务状态更新接口")]
        public string updateIncidentStatus(string leixing, string body)
        {
            return _DLLYWTB_WS.updateIncidentStatus(leixing, body);
        }

        [WebMethod(MessageName = "transferIncident", Description = @"转单接口")]
        public string transferIncident(string leixing, string body)
        {
            return _DLLYWTB_WS.transferIncident(leixing, body);
        }

        [WebMethod(MessageName = "incidentDefer", Description = @"申请单延期接口")]
        public string incidentDefer(string leixing, string body)
        {
            return _DLLYWTB_WS.incidentDefer(leixing, body);
        }

        #endregion

        [WebMethod(MessageName = "UploadHeTong", Description = @"上传合同文件")]
        public bool UploadHeTong(string incident_id, out string msg)
        {
            return _DLLYWTB_WS.UploadHeTong(incident_id, out msg);
        }
        [WebMethod(MessageName = "UploadHeTongNEW", Description = @"上传合同文件测试")]
        public string UploadHeTongNEW(string incident_id)
        {
            string msg = "";
            _DLLYWTB_WS.UploadHeTong(incident_id, out msg);
            return msg;
        }
        [WebMethod(MessageName = "UploadHeTongCA", Description = @"上传CA合同文件测试")]
        public string UPLOADCAHETONGCA(string V_S_CID, string V_S_HETONGBH, string V_S_HM, string V_S_JH, string V_D_DIANHUA, string V_S_ZHENGJIANID, out string filename, out string msg)
        {
            return _DLLYWTB_WS.UPLOADCAHETONGCA(V_S_CID, V_S_HETONGBH, V_S_HM, V_S_JH, V_D_DIANHUA, V_S_ZHENGJIANID, out filename, out msg);
        }
        [WebMethod(MessageName = "UploadHeTongCANEW", Description = @"上传CA合同文件测试新")]
        public string UPLOADCAHETONGCANEW(string V_S_CID, string V_S_HETONGBH, string V_S_HM, string V_S_JH, string V_D_DIANHUA, string V_S_ZHENGJIANID)
        {
            string filename = "";
            string msg = "";
            return _DLLYWTB_WS.UPLOADCAHETONGCA(V_S_CID, V_S_HETONGBH, V_S_HM, V_S_JH, V_D_DIANHUA, V_S_ZHENGJIANID, out filename, out msg);
        }
        [WebMethod(MessageName = "customerInfoChange", Description = @"5.11	客户联系信息变更")]
        public XiangYingEntity customerInfoChange(customerInfoChangeEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.customerInfoChange(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "queryBill", Description = @"5.12	补寄账单前置查询接口")]
        public queryBillResultEntity queryBill(queryBillEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.queryBill(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "payNoticeRemail", Description = @"5.13	补缴费通知单")]
        public XiangYingEntity payNoticeRemail(payNoticeRemailEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.payNoticeRemail(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "queryInvoice", Description = @"5.14	电子发票前置查询")]
        public queryInvoiceResultEntity queryInvoice(queryInvoiceEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.queryInvoice(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "elecInvoiceAutoPush", Description = @"5.15	电子发票自动推送")]
        public XiangYingEntity elecInvoiceAutoPush(elecInvoiceAutoPushEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.elecInvoiceAutoPush(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "elecInvoiceObtain", Description = @"5.16	电子发票单次获取")]
        public elecInvoiceObtainResultEntity elecInvoiceObtain(elecInvoiceObtainEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.elecInvoiceObtain(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "bookAvailable", Description = @"5.19	业务预约")]
        public bookAvailableResultEntity bookAvailable(string business_type, string card_id)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.bookAvailable(business_type, card_id, S_IP);
        }

        [WebMethod(MessageName = "addressMatch", Description = @"5.20	水司地址匹配")]
        public addressMatchResultEntity addressMatch(string address)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.addressMatch(address, S_IP);
        }

        [WebMethod(MessageName = "meterMove", Description = @"5.21	水表外移")]
        public XiangYingEntity meterMove(meterMoveEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.meterMove(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "meterUnseal", Description = @"5.22	新表启封")]
        public XiangYingEntity meterUnseal(meterUnsealEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.meterUnseal(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "accountCancel", Description = @"5.23	水表拆表销户")]
        public XiangYingEntity accountCancel(accountCancelEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.accountCancel(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "shareMeter", Description = @"5.24	居民合用表")]
        public XiangYingEntity shareMeter(shareMeterEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.shareMeter(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "cardList", Description = @"5.25	户号列表")]
        public cardListResultEntity cardList(string card_id)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.cardList(card_id, S_IP);
        }

        [WebMethod(MessageName = "chargeCollection", Description = @"5.26	水费托收")]
        public XiangYingEntity chargeCollection(chargeCollectionEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.chargeCollection(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "waterTypeChange", Description = @"5.27	用水性质变更")]
        public XiangYingEntity waterTypeChange(waterTypeChangeEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.waterTypeChange(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "adviceComplain", Description = @"5.28	业务咨询、表扬、投诉、建议")]
        public XiangYingEntity adviceComplain(adviceComplainEntity rpEntity)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.adviceComplain(rpEntity, S_IP);
        }

        [WebMethod(MessageName = "getProductionCertificateFile", Description = @"5.29	补产证")]
        public string getProductionCertificateFile(string incident_id, string body, string caozuor)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.getProductionCertificateFile(incident_id, body, caozuor, S_IP);
        }
        [WebMethod(MessageName = "INCIDENT_ID", Description = @"下载文件")]
        public string getFiles(string INCIDENT_ID, string FileName)
        {
            _DLLYWTB_WS.getFiles(INCIDENT_ID, FileName);
            return null;
        }
        [WebMethod(MessageName = "incidentIDSearch", Description = @"5.30 incidentID查询接口")]
        public CheckEntity incidentIDSearch(string incident_id, string businessType)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.IsIncident_IDExistByType(incident_id, businessType, S_IP);
        }
        [WebMethod(MessageName = "searchBillByCardIdOrZdDate", Description = @"5.31 账单详情查询")]
        public searchBillDataEntity searchBillByCardIdOrZdDate(string source, string card_id, string start_zd_date, string end_zd_date, string phonename, string phone, string card_type, string card_number, string validity_card)
        {
            string S_IP = this.Context.Request.UserHostAddress;
            return _DLLYWTB_WS.searchBillByCardIdOrZdDate(source, card_id, start_zd_date, end_zd_date, phonename, phone, card_type, card_number, validity_card, S_IP);
        }
        [WebMethod(MessageName = "scanCertQrCode", Description = @"5.32 亮证扫码")]
        public string scanCertQrCode(scanCertQrCodeEntity data)
        {
            string S_IP = this.Context.Request.UserHostAddress;

            return _DLLYWTB_WS.scanCertQrCode(data, S_IP);

        }
        [WebMethod(MessageName = "TestCreateFile", Description = @"5.32 亮证扫码文件夹")]
        public string TestCreateFile(string filepath)
        {
            string S_IP = this.Context.Request.UserHostAddress;

            return _DLLYWTB_WS.TestCreateFile(filepath);

        }
        #region 热线公告
        [WebMethod(MessageName = "RXGGXZZZ", Description = @"新增跟踪")]
        public bool RXGGXZZZ(string V_Citem, string V_Ctitle, string V_Cnotes, string V_Ctzfw, string base64zifu, string FILENAMES, out string msg)
        {
            return _DLLYWTB_WS.RXGGXZZZ(V_Citem, V_Ctitle, V_Cnotes, V_Ctzfw, base64zifu, FILENAMES, out msg);
        }
        [WebMethod(MessageName = "RXGGXGZZ", Description = @"修改跟踪信息")]
        public bool RXGGXGZZ(string V_Citem, string V_Ctitle, string V_Cnotes, string V_Ctzfw, string V_ID, string base64zifu, out string msg)
        {
            return _DLLYWTB_WS.RXGGXGZZ(V_Citem, V_Ctitle, V_Cnotes, V_Ctzfw, V_ID, base64zifu, out msg);
        }
        [WebMethod(MessageName = "RXGGXZGC", Description = @"新增工程信息")]
        public bool RXGGXZGC(string V_Tstype, string V_Tsbt, string V_Jhtssj, string V_Jhfssj, string V_Tsnr, string V_TsFW, string V_Caliber, string V_Station, out string msg)
        {
            return _DLLYWTB_WS.RXGGXZGC(V_Tstype, V_Tsbt, V_Jhtssj, V_Jhfssj, V_Tsnr, V_TsFW, V_Caliber, V_Station, out msg);
        }
        [WebMethod(MessageName = "RXGGXGGC", Description = @"修改工程信息")]
        public bool RXGGXGGC(string V_Tstype, string V_Tsbt, string V_Jhtssj, string V_Jhfssj, string V_Tsnr, string V_TsFW, string V_Caliber, string V_Station, string V_Id, out string msg)
        {
            return _DLLYWTB_WS.RXGGXGGC(V_Tstype, V_Tsbt, V_Jhtssj, V_Jhfssj, V_Tsnr, V_TsFW, V_Caliber, V_Station, V_Id, out msg);
        }
        [WebMethod(MessageName = "RXSCGZXX", Description = @"删除跟踪信息")]
        public bool RXSCGZXX(int V_Id, out string msg)
        {
            return _DLLYWTB_WS.RXSCGZXX(V_Id, out msg);
        }
        [WebMethod(MessageName = "RXSCGCXX", Description = @"删除工程信息")]
        public bool RXSCGCXX(int V_Id, out string msg)
        {
            return _DLLYWTB_WS.RXSCGCXX(V_Id, out msg);
        }
        [WebMethod(MessageName = "CSKHDSCWJ", Description = @"川沙客服单上传文件")]
        public bool CSKHDSCWJ(string SerialNumber, string base64zifu, string FILENAMES, out string msg)
        {
            return _DLLYWTB_WS.CSKHDSCWJ(SerialNumber, base64zifu, FILENAMES, out msg);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="SerialNumber">客服编号</param>
        /// <param name="base64zifu">文件路径</param>
        /// <param name="FILENAMES">文件名</param>
        /// <returns></returns>
        [WebMethod(MessageName = "CSKHDSCWJN", Description = @"川沙客服单上传文件(补发)")]
        public bool CSKHDSCWJN(string SerialNumber, string base64zifu, string FILENAMES)
        {
            return _DLLYWTB_WS.CSKHDSCWJN(SerialNumber, base64zifu, FILENAMES);
        }
        #endregion
        #region 一户多人口受益人
        /// <summary>
        /// 一户多人口受益人查询
        /// </summary>
        /// <param name="cardNo">身份证号码</param>
        /// <param name="handleWay">办理方式</param>
        /// <param name="name">姓名</param>
        /// <param name="applyStatus">申请状态</param>
        /// <param name="userNo">户号</param>
        /// <returns></returns>
        [WebMethod(MessageName = "BeneficiaryQuery", Description = @"受益人查询")]
        public List<getBeneficiaryOutput> BeneficiaryQuery(string jsoncanshu, string vcompany, string vusername, string vpassword)
        {
            LogUtil.Info("BeneficiaryQuery方法接收参数：" + jsoncanshu);
            // 调用接口,结果非空判断
            string url = ConfigurationManager.AppSettings["BeneficiaryQuery"];
            //获取token
            vcompany = ConfigurationManager.AppSettings["HT_companyCode"];
            vusername = ConfigurationManager.AppSettings["HT_userId"];
            vpassword = ConfigurationManager.AppSettings["HT_password"];
            ResultStringDataEntity objecttoken = _DLLYWTB_WS.GetToken(vcompany, vusername, vpassword);
            string token = objecttoken.result;
            HttpResult JsonData = _DLLYWTB_WS.PostHttpNewWeb(url, jsoncanshu, token);
            string html = JsonData.html;
            LogUtil.Info("BeneficiaryQuery方法接收返回结果：" + html);
            ResultOutDataModeEntity<getBeneficiaryOutput> resultData = JsonConvert.DeserializeObject<ResultOutDataModeEntity<getBeneficiaryOutput>>(JsonData.html);
            string Currdate = DateTime.Now.ToString();
            string requestid = resultData.requestId == null ? "" : resultData.requestId;
            string errcode = resultData.errCode == null ? "" : resultData.errCode;
            string errmessage = resultData.errMessage == null ? "" : resultData.errMessage;
            //success 成功失败
            Boolean RequestState = resultData.success;
            //状态码 200
            int StatusCode = resultData.code;
            //消息 当前状态码为:200,返回成功
            string Message = resultData.msg == null ? "" : resultData.msg;
            string pid = Guid.NewGuid().ToString();
            int result = _DLLYWTB_WS.BeneficiaryQuery(requestid, errcode, errmessage, RequestState, StatusCode, Message, pid);
            int result2 = 0;
            foreach (getBeneficiaryOutput item in resultData.data)
            {
                //BanjianNumber, Soure, CompanyName, CompanyCode, HouseNumber, UseWaterLocation, ApplyDate, Startdate, Enddate, BeneficiaryName, BeneficiarySFZNumber, applystatus
                //办件编号
                string BanjianNumber = item.incidentId == null ? "" : item.incidentId;
                //来源
                string Soure = item.source == null ? "" : item.source;
                //公司名称
                string CompanyName = item.companyName == null ? "" : item.companyName;
                //公司代码
                string CompanyCode = item.companyCode == null ? "" : item.companyCode;
                //户号
                string HouseNumber = item.userNo == null ? "" : item.userNo;
                //用水地址
                string UseWaterLocation = item.address == null ? "" : item.address;
                //申请时间
                string ApplyDate = item.appdate == null ? "" : item.appdate;
                //一户多人口生效起始时间
                string Startdate = item.startTime == null ? "" : item.startTime;
                //一户多人口到期时间
                string Enddate = item.endTime == null ? "" : item.endTime;
                //受益人名称
                string BeneficiaryName = item.beneficiaryName == null ? "" : item.beneficiaryName;
                //受益人身份证明材料编号
                string BeneficiarySFZNumber = item.cardNo == null ? "" : item.cardNo;
                //申请状态
                string applystatus = item.applyStatus == null ? "" : item.applyStatus;
                result2 = _DLLYWTB_WS.BeneficiaryQuery_MessageProc(pid, BanjianNumber, Soure, CompanyName, CompanyCode, HouseNumber, UseWaterLocation, ApplyDate, Startdate, Enddate, BeneficiaryName, BeneficiarySFZNumber, applystatus);
            }
            return resultData.data;
        }


        [WebMethod(MessageName = "BeneficiaryInsert", Description = @"受益人新增")]
        public string BeneficiaryInsert(string jaoncanshu, string vcompany, string vusername, string vpassword)
        {
            vcompany = ConfigurationManager.AppSettings["HT_companyCode"];
            vusername = ConfigurationManager.AppSettings["HT_userId"];
            vpassword = ConfigurationManager.AppSettings["HT_password"];
            return _DLLYWTB_WS.BeneficiaryInsertNew(jaoncanshu, vcompany, vusername, vpassword);
        }
        /// <summary>
        /// 一户多人口受益人更新
        /// </summary>
        /// <param name="incidentId">申请编号</param>
        /// <param name="companyCode">公司代码</param>
        /// <param name="userNo">户号</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="applyStatus">申请状态</param>
        /// <returns></returns>
        [WebMethod(MessageName = "BeneficiaryUpdate", Description = @"受益人更新")]
        public string BeneficiaryUpdate(string incidentId, string companyCode, string userNo, string endTime, int applyStatus, string vcompany, string vusername, string vpassword)
        {
            vcompany = ConfigurationManager.AppSettings["HT_companyCode"];
            vusername = ConfigurationManager.AppSettings["HT_userId"];
            vpassword = ConfigurationManager.AppSettings["HT_password"];
            return _DLLYWTB_WS.BeneficiaryUpdateNEW(incidentId, companyCode, userNo, endTime, applyStatus, vcompany, vusername, vpassword);
        }
        /// <summary>
        /// 获取token
        /// </summary>
        /// <param name="vcompany">公司名</param>
        /// <param name="vusername">账号</param>
        /// <param name="vpassword">密码</param>
        /// <returns></returns>
        [WebMethod(MessageName = "GetToken", Description = @"获取token")]
        public ResultStringDataEntity GetToken(string vcompany, string vusername, string vpassword)
        {
            return _DLLYWTB_WS.GetToken(vcompany, vusername, vpassword);
        }

        // 受益人批量查重校验
        [WebMethod(MessageName = "duplicatecheck", Description = @"受益人批量查重校验")]
        public string duplicatecheck(string canshu, string vcompany, string vusername, string vpassword)
        {
            vcompany = ConfigurationManager.AppSettings["HT_companyCode"];
            vusername = ConfigurationManager.AppSettings["HT_userId"];
            vpassword = ConfigurationManager.AppSettings["HT_password"];
            string result = _DLLYWTB_WS.WTB_SYRCCQuery(canshu, vcompany, vusername, vpassword);
            return result;
        }

        // 每日办件数量核对
        [WebMethod(MessageName = "quantitycheck", Description = @"每日办件数量核对")]
        public string quantitycheck(string startTime, string endTime, string companyCode, string incidentId, string userNo, string vcompany, string vusername, string vpassword)
        {
            vcompany = ConfigurationManager.AppSettings["HT_companyCode"];
            vusername = ConfigurationManager.AppSettings["HT_userId"];
            vpassword = ConfigurationManager.AppSettings["HT_password"];
            string id = _DLLYWTB_WS.WTB_BJSLHDQuery(startTime, endTime, companyCode, incidentId, userNo, vcompany, vusername, vpassword);
            return id;
        }

        #endregion

        #region 科技馆大屏业务


        [WebMethod(MessageName = "querybjxx", Description = @"获取办件信息")]
        public XiangYingEntity querybjxx(string incidentId, string applyNo, string businessType, string userId)
        {
            LogUtil.Info($"incidentId '{incidentId}', applyNo '{applyNo}', businessType '{businessType}',userId '{userId}'");
            try
            {
                if (businessType == "McsItemType.MuseumScreen")
                {
                    KeJiGuanDPInput input = new KeJiGuanDPInput();
                    input.incidentId = incidentId;
                    input.applyNo = applyNo;
                    input.businessType = businessType;
                    input.userId = userId;

                    return KeJiGuanDPBL(input);
                }
            }
            catch (Exception ex)
            {
                LogUtil.Error("querybjxx error:" + ex.Message);
            }
            return null;
        }



        KeJiGuanDPBLL keJiGuanDPBLL = new KeJiGuanDPBLL();

        /// <summary>
        /// 科技馆大屏
        /// </summary>
        /// <param name="keJiGuanDPInput"></param>
        [WebMethod(MessageName = "KeJiGuanDPBL", Description = @"科技馆大屏办理")]
        public XiangYingEntity KeJiGuanDPBL(KeJiGuanDPInput keJiGuanDPInput)
        {
            return keJiGuanDPBLL.KeJiGuanDPBL(keJiGuanDPInput);
        }

        [WebMethod(MessageName = "KeJiGuanDPSH", Description = @"科技馆大屏返回")]
        public IncidentStatusReturnEntity KeJiGuanDPSH(string body)
        {
            return keJiGuanDPBLL.KeJiGuanDPSH(body);
        }

        #endregion
    }
}
